<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"  %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@taglib prefix="pg" uri="http://jsptags.com/tags/navigation/pager"%>
<c:set var="contextPath" value="<%=request.getContextPath() %>"></c:set>

<!DOCTYPE html>
<html lang="en">
	<head>
		<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
		<meta charset="utf-8" />
		<title>课程管理</title>

		<meta name="description" content="Static &amp; Dynamic Tables" />
		<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0" />

		<!-- bootstrap & fontawesome -->
		<link rel="stylesheet" href="${pageContext.request.contextPath }/static/assets/css/bootstrap.min.css" />
		<link rel="stylesheet" href="${pageContext.request.contextPath }/static/assets/css/font-awesome.min.css" />
		

		<!-- page specific plugin styles -->
		
		
		<!-- text fonts -->
		<link rel="stylesheet" href="${pageContext.request.contextPath }/static/assets/css/ace-fonts.css" />

		<!-- ace styles -->
		<link rel="stylesheet" href="${pageContext.request.contextPath }/static/assets/css/ace.min.css" id="main-ace-style" />

		<!--[if lte IE 9]>
			<link rel="stylesheet" href="../assets/css/ace-part2.min.css" />
		<![endif]-->
		<link rel="stylesheet" href="${pageContext.request.contextPath }/static/assets/css/ace-skins.min.css" />
		<link rel="stylesheet" href="${pageContext.request.contextPath }/static/assets/css/ace-rtl.min.css" />

		<!--[if lte IE 9]>
		  <link rel="stylesheet" href="../assets/css/ace-ie.min.css" />
		<![endif]-->

		<!-- inline styles related to this page -->

		<!-- ace settings handler -->
		<script src="${pageContext.request.contextPath }/static/assets/js/ace-extra.min.js"></script>
		<script type="text/javascript" src="${pageContext.request.contextPath }/static/lib/jquery-1.11.1.min.js"></script>
		<!-- HTML5shiv and Respond.js for IE8 to support HTML5 elements and media queries -->

		<!--[if lte IE 8]>
		<script src="../assets/js/html5shiv.min.js"></script>
		<script src="../assets/js/respond.min.js"></script>
		<![endif]-->
		
		
		
	</head>

	<body class="no-skin">
	<c:if test="${not empty message }">
			<script type="text/javascript">
				alert('${message}');
			</script>
	</c:if>
		<!-- #section:basics/navbar.layout -->
		<div id="navbar" class="navbar navbar-default">
			<script type="text/javascript">
				try{ace.settings.check('navbar' , 'fixed')}catch(e){}
			</script>

			<div class="navbar-container" id="navbar-container">
				<!-- #section:basics/sidebar.mobile.toggle -->
				<button type="button" class="navbar-toggle menu-toggler pull-left" id="menu-toggler">
					<span class="sr-only">Toggle sidebar</span>

					<span class="icon-bar"></span>

					<span class="icon-bar"></span>

					<span class="icon-bar"></span>
				</button>

				<!-- /section:basics/sidebar.mobile.toggle -->
				<div class="navbar-header pull-left">
					<!-- #section:basics/navbar.layout.brand -->
					<a href="#" class="navbar-brand">
						<small>
							<i class="fa fa-leaf"></i>
							Ace Admin
						</small>
					</a>

					<!-- /section:basics/navbar.layout.brand -->

					<!-- #section:basics/navbar.toggle -->

					<!-- /section:basics/navbar.toggle -->
				</div>

				<!-- #section:basics/navbar.dropdown -->
				<div class="navbar-buttons navbar-header pull-right" role="navigation">
					<ul class="nav ace-nav">
						<li class="grey">
							<a data-toggle="dropdown" class="dropdown-toggle" href="#">
								<i class="ace-icon fa fa-tasks"></i>
								<span class="badge badge-grey">4</span>
							</a>

							<ul class="dropdown-menu-right dropdown-navbar dropdown-menu dropdown-caret dropdown-close">
								<li class="dropdown-header">
									<i class="ace-icon fa fa-check"></i>
									4 Tasks to complete
								</li>

								<li>
									<a href="#">
										<div class="clearfix">
											<span class="pull-left">Software Update</span>
											<span class="pull-right">65%</span>
										</div>

										<div class="progress progress-mini">
											<div style="width:65%" class="progress-bar"></div>
										</div>
									</a>
								</li>

								<li>
									<a href="#">
										<div class="clearfix">
											<span class="pull-left">Hardware Upgrade</span>
											<span class="pull-right">35%</span>
										</div>

										<div class="progress progress-mini">
											<div style="width:35%" class="progress-bar progress-bar-danger"></div>
										</div>
									</a>
								</li>

								<li>
									<a href="#">
										<div class="clearfix">
											<span class="pull-left">Unit Testing</span>
											<span class="pull-right">15%</span>
										</div>

										<div class="progress progress-mini">
											<div style="width:15%" class="progress-bar progress-bar-warning"></div>
										</div>
									</a>
								</li>

								<li>
									<a href="#">
										<div class="clearfix">
											<span class="pull-left">Bug Fixes</span>
											<span class="pull-right">90%</span>
										</div>

										<div class="progress progress-mini progress-striped active">
											<div style="width:90%" class="progress-bar progress-bar-success"></div>
										</div>
									</a>
								</li>

								<li class="dropdown-footer">
									<a href="#">
										See tasks with details
										<i class="ace-icon fa fa-arrow-right"></i>
									</a>
								</li>
							</ul>
						</li>

						<li class="purple">
							<a data-toggle="dropdown" class="dropdown-toggle" href="#">
								<i class="ace-icon fa fa-bell icon-animated-bell"></i>
								<span class="badge badge-important">8</span>
							</a>

							<ul class="dropdown-menu-right dropdown-navbar navbar-pink dropdown-menu dropdown-caret dropdown-close">
								<li class="dropdown-header">
									<i class="ace-icon fa fa-exclamation-triangle"></i>
									8 Notifications
								</li>

								<li>
									<a href="#">
										<div class="clearfix">
											<span class="pull-left">
												<i class="btn btn-xs no-hover btn-pink fa fa-comment"></i>
												New Comments
											</span>
											<span class="pull-right badge badge-info">+12</span>
										</div>
									</a>
								</li>

								<li>
									<a href="#">
										<i class="btn btn-xs btn-primary fa fa-user"></i>
										Bob just signed up as an editor ...
									</a>
								</li>

								<li>
									<a href="#">
										<div class="clearfix">
											<span class="pull-left">
												<i class="btn btn-xs no-hover btn-success fa fa-shopping-cart"></i>
												New Orders
											</span>
											<span class="pull-right badge badge-success">+8</span>
										</div>
									</a>
								</li>

								<li>
									<a href="#">
										<div class="clearfix">
											<span class="pull-left">
												<i class="btn btn-xs no-hover btn-info fa fa-twitter"></i>
												Followers
											</span>
											<span class="pull-right badge badge-info">+11</span>
										</div>
									</a>
								</li>

								<li class="dropdown-footer">
									<a href="#">
										See all notifications
										<i class="ace-icon fa fa-arrow-right"></i>
									</a>
								</li>
							</ul>
						</li>

						<li class="green">
							<a data-toggle="dropdown" class="dropdown-toggle" href="#">
								<i class="ace-icon fa fa-envelope icon-animated-vertical"></i>
								<span class="badge badge-success">5</span>
							</a>

							<ul class="dropdown-menu-right dropdown-navbar dropdown-menu dropdown-caret dropdown-close">
								<li class="dropdown-header">
									<i class="ace-icon fa fa-envelope-o"></i>
									5 Messages
								</li>

								<li class="dropdown-content">
									<ul class="dropdown-menu dropdown-navbar">
										<li>
											<a href="#">
												<img src="${pageContext.request.contextPath }/static/assets/avatars/avatar.png" class="msg-photo" alt="Alex's Avatar" />
												<span class="msg-body">
													<span class="msg-title">
														<span class="blue">Alex:</span>
														Ciao sociis natoque penatibus et auctor ...
													</span>

													<span class="msg-time">
														<i class="ace-icon fa fa-clock-o"></i>
														<span>a moment ago</span>
													</span>
												</span>
											</a>
										</li>

										<li>
											<a href="#">
												<img src="${pageContext.request.contextPath }/static/assets/avatars/avatar3.png" class="msg-photo" alt="Susan's Avatar" />
												<span class="msg-body">
													<span class="msg-title">
														<span class="blue">Susan:</span>
														Vestibulum id ligula porta felis euismod ...
													</span>

													<span class="msg-time">
														<i class="ace-icon fa fa-clock-o"></i>
														<span>20 minutes ago</span>
													</span>
												</span>
											</a>
										</li>

										<li>
											<a href="#">
												<img src="${pageContext.request.contextPath }/static/assets/avatars/avatar4.png" class="msg-photo" alt="Bob's Avatar" />
												<span class="msg-body">
													<span class="msg-title">
														<span class="blue">Bob:</span>
														Nullam quis risus eget urna mollis ornare ...
													</span>

													<span class="msg-time">
														<i class="ace-icon fa fa-clock-o"></i>
														<span>3:15 pm</span>
													</span>
												</span>
											</a>
										</li>

										<li>
											<a href="#">
												<img src="${pageContext.request.contextPath }/static/assets/avatars/avatar2.png" class="msg-photo" alt="Kate's Avatar" />
												<span class="msg-body">
													<span class="msg-title">
														<span class="blue">Kate:</span>
														Ciao sociis natoque eget urna mollis ornare ...
													</span>

													<span class="msg-time">
														<i class="ace-icon fa fa-clock-o"></i>
														<span>1:33 pm</span>
													</span>
												</span>
											</a>
										</li>

										<li>
											<a href="#">
												<img src="${pageContext.request.contextPath }/static/assets/avatars/avatar5.png" class="msg-photo" alt="Fred's Avatar" />
												<span class="msg-body">
													<span class="msg-title">
														<span class="blue">Fred:</span>
														Vestibulum id penatibus et auctor  ...
													</span>

													<span class="msg-time">
														<i class="ace-icon fa fa-clock-o"></i>
														<span>10:09 am</span>
													</span>
												</span>
											</a>
										</li>
									</ul>
								</li>

								<li class="dropdown-footer">
									<a href="inbox.html">
										See all messages
										<i class="ace-icon fa fa-arrow-right"></i>
									</a>
								</li>
							</ul>
						</li>

						<!-- #section:basics/navbar.user_menu -->
						<li class="light-blue">
							<a data-toggle="dropdown" href="#" class="dropdown-toggle">
								<img class="nav-user-photo" src="${pageContext.request.contextPath }/static/assets/avatars/user.jpg" alt="Jason's Photo" />
								<span class="user-info">
									<small>Welcome,</small>
									Jason
								</span>

								<i class="ace-icon fa fa-caret-down"></i>
							</a>

							<ul class="user-menu dropdown-menu-right dropdown-menu dropdown-yellow dropdown-caret dropdown-close">
								<li>
									<a href="#">
										<i class="ace-icon fa fa-cog"></i>
										Settings
									</a>
								</li>

								<li>
									<a href="profile.html">
										<i class="ace-icon fa fa-user"></i>
										Profile
									</a>
								</li>

								<li class="divider"></li>

								<li>
									<a href="#">
										<i class="ace-icon fa fa-power-off"></i>
										Logout
									</a>
								</li>
							</ul>
						</li>

						<!-- /section:basics/navbar.user_menu -->
					</ul>
				</div>

				<!-- /section:basics/navbar.dropdown -->
			</div><!-- /.navbar-container -->
		</div>

		<!-- /section:basics/navbar.layout -->
		<div class="main-container" id="main-container">
			<script type="text/javascript">
				try{ace.settings.check('main-container' , 'fixed')}catch(e){}
			</script>

			<!-- #section:basics/sidebar -->
			<div id="sidebar" class="sidebar                  responsive">
				<script type="text/javascript">
					try{ace.settings.check('sidebar' , 'fixed')}catch(e){}
				</script>

				<div class="sidebar-shortcuts" id="sidebar-shortcuts">
					<div class="sidebar-shortcuts-large" id="sidebar-shortcuts-large">
						<button class="btn btn-success">
							<i class="ace-icon fa fa-signal"></i>
						</button>

						<button class="btn btn-info">
							<i class="ace-icon fa fa-pencil"></i>
						</button>

						<!-- #section:basics/sidebar.layout.shortcuts -->
						<button class="btn btn-warning">
							<i class="ace-icon fa fa-users"></i>
						</button>

						<button class="btn btn-danger">
							<i class="ace-icon fa fa-cogs"></i>
						</button>

						<!-- /section:basics/sidebar.layout.shortcuts -->
					</div>

					<div class="sidebar-shortcuts-mini" id="sidebar-shortcuts-mini">
						<span class="btn btn-success"></span>

						<span class="btn btn-info"></span>

						<span class="btn btn-warning"></span>

						<span class="btn btn-danger"></span>
					</div>
				</div><!-- /.sidebar-shortcuts -->

				<ul class="nav nav-list">
					<li class="">
						<a href="index">
							<i class="menu-icon fa fa-tachometer"></i>
							<span class="menu-text"> Dashboard </span>
						</a>

						<b class="arrow"></b>
					</li>

					<li class="">
						<a href="#" class="dropdown-toggle">
							<i class="menu-icon fa fa-desktop"></i>
							<span class="menu-text"> UI &amp; Elements </span>

							<b class="arrow fa fa-angle-down"></b>
						</a>

						<b class="arrow"></b>

						<ul class="submenu">
							<li class="">
								<a href="#" class="dropdown-toggle">
									<i class="menu-icon fa fa-caret-right"></i>

									Layouts
									<b class="arrow fa fa-angle-down"></b>
								</a>

								<b class="arrow"></b>

								<ul class="submenu">
									<li class="">
										<a href="top-menu.html">
											<i class="menu-icon fa fa-caret-right"></i>
											Top Menu
										</a>

										<b class="arrow"></b>
									</li>

									<li class="">
										<a href="mobile-menu-1.html">
											<i class="menu-icon fa fa-caret-right"></i>
											Default Mobile Menu
										</a>

										<b class="arrow"></b>
									</li>

									<li class="">
										<a href="mobile-menu-2.html">
											<i class="menu-icon fa fa-caret-right"></i>
											Mobile Menu 2
										</a>

										<b class="arrow"></b>
									</li>

									<li class="">
										<a href="mobile-menu-3.html">
											<i class="menu-icon fa fa-caret-right"></i>
											Mobile Menu 3
										</a>

										<b class="arrow"></b>
									</li>
								</ul>
							</li>

							<li class="">
								<a href="typography.html">
									<i class="menu-icon fa fa-caret-right"></i>
									Typography
								</a>

								<b class="arrow"></b>
							</li>

							<li class="">
								<a href="elements.html">
									<i class="menu-icon fa fa-caret-right"></i>
									Elements
								</a>

								<b class="arrow"></b>
							</li>

							<li class="">
								<a href="buttons.html">
									<i class="menu-icon fa fa-caret-right"></i>
									Buttons &amp; Icons
								</a>

								<b class="arrow"></b>
							</li>

							<li class="">
								<a href="treeview.html">
									<i class="menu-icon fa fa-caret-right"></i>
									Treeview
								</a>

								<b class="arrow"></b>
							</li>

							<li class="">
								<a href="jquery-ui.html">
									<i class="menu-icon fa fa-caret-right"></i>
									jQuery UI
								</a>

								<b class="arrow"></b>
							</li>

							<li class="">
								<a href="nestable-list.html">
									<i class="menu-icon fa fa-caret-right"></i>
									Nestable Lists
								</a>

								<b class="arrow"></b>
							</li>

							<li class="">
								<a href="#" class="dropdown-toggle">
									<i class="menu-icon fa fa-caret-right"></i>

									Three Level Menu
									<b class="arrow fa fa-angle-down"></b>
								</a>

								<b class="arrow"></b>

								<ul class="submenu">
									<li class="">
										<a href="#">
											<i class="menu-icon fa fa-leaf green"></i>
											Item #1
										</a>

										<b class="arrow"></b>
									</li>

									<li class="">
										<a href="#" class="dropdown-toggle">
											<i class="menu-icon fa fa-pencil orange"></i>

											4th level
											<b class="arrow fa fa-angle-down"></b>
										</a>

										<b class="arrow"></b>

										<ul class="submenu">
											<li class="">
												<a href="#">
													<i class="menu-icon fa fa-plus purple"></i>
													Add Product
												</a>

												<b class="arrow"></b>
											</li>

											<li class="">
												<a href="#">
													<i class="menu-icon fa fa-eye pink"></i>
													View Products
												</a>

												<b class="arrow"></b>
											</li>
										</ul>
									</li>
								</ul>
							</li>
						</ul>
					</li>

					<li class="active open">
						<a href="#" class="dropdown-toggle">
							<i class="menu-icon fa fa-list"></i>
							<span class="menu-text"> Tables </span>

							<b class="arrow fa fa-angle-down"></b>
						</a>

						<b class="arrow"></b>

						<ul class="submenu">
							<li class="active">
								<a href="tables.html">
									<i class="menu-icon fa fa-caret-right"></i>
									Simple &amp; Dynamic
								</a>

								<b class="arrow"></b>
							</li>

							<li class="">
								<a href="jqgrid.html">
									<i class="menu-icon fa fa-caret-right"></i>
									jqGrid plugin
								</a>

								<b class="arrow"></b>
							</li>
						</ul>
					</li>

					<li class="">
						<a href="#" class="dropdown-toggle">
							<i class="menu-icon fa fa-pencil-square-o"></i>
							<span class="menu-text"> Forms </span>

							<b class="arrow fa fa-angle-down"></b>
						</a>

						<b class="arrow"></b>

						<ul class="submenu">
							<li class="">
								<a href="form-elements.html">
									<i class="menu-icon fa fa-caret-right"></i>
									Form Elements
								</a>

								<b class="arrow"></b>
							</li>

							<li class="">
								<a href="form-wizard.html">
									<i class="menu-icon fa fa-caret-right"></i>
									Wizard &amp; Validation
								</a>

								<b class="arrow"></b>
							</li>

							<li class="">
								<a href="wysiwyg.html">
									<i class="menu-icon fa fa-caret-right"></i>
									Wysiwyg &amp; Markdown
								</a>

								<b class="arrow"></b>
							</li>

							<li class="">
								<a href="dropzone.html">
									<i class="menu-icon fa fa-caret-right"></i>
									Dropzone File Upload
								</a>

								<b class="arrow"></b>
							</li>
						</ul>
					</li>

					<li class="">
						<a href="widgets.html">
							<i class="menu-icon fa fa-list-alt"></i>
							<span class="menu-text"> Widgets </span>
						</a>

						<b class="arrow"></b>
					</li>

					<li class="">
						<a href="calendar.html">
							<i class="menu-icon fa fa-calendar"></i>

							<span class="menu-text">
								Calendar

								<!-- #section:basics/sidebar.layout.badge -->
								<span class="badge badge-transparent tooltip-error" title="2 Important Events">
									<i class="ace-icon fa fa-exclamation-triangle red bigger-130"></i>
								</span>

								<!-- /section:basics/sidebar.layout.badge -->
							</span>
						</a>

						<b class="arrow"></b>
					</li>

					<li class="">
						<a href="gallery.html">
							<i class="menu-icon fa fa-picture-o"></i>
							<span class="menu-text"> Gallery </span>
						</a>

						<b class="arrow"></b>
					</li>

					<li class="">
						<a href="#" class="dropdown-toggle">
							<i class="menu-icon fa fa-tag"></i>
							<span class="menu-text"> More Pages </span>

							<b class="arrow fa fa-angle-down"></b>
						</a>

						<b class="arrow"></b>

						<ul class="submenu">
							<li class="">
								<a href="profile.html">
									<i class="menu-icon fa fa-caret-right"></i>
									User Profile
								</a>

								<b class="arrow"></b>
							</li>

							<li class="">
								<a href="inbox.html">
									<i class="menu-icon fa fa-caret-right"></i>
									Inbox
								</a>

								<b class="arrow"></b>
							</li>

							<li class="">
								<a href="pricing.html">
									<i class="menu-icon fa fa-caret-right"></i>
									Pricing Tables
								</a>

								<b class="arrow"></b>
							</li>

							<li class="">
								<a href="invoice.html">
									<i class="menu-icon fa fa-caret-right"></i>
									Invoice
								</a>

								<b class="arrow"></b>
							</li>

							<li class="">
								<a href="timeline.html">
									<i class="menu-icon fa fa-caret-right"></i>
									Timeline
								</a>

								<b class="arrow"></b>
							</li>

							<li class="">
								<a href="email.html">
									<i class="menu-icon fa fa-caret-right"></i>
									Email Templates
								</a>

								<b class="arrow"></b>
							</li>

							<li class="">
								<a href="login.html">
									<i class="menu-icon fa fa-caret-right"></i>
									Login &amp; Register
								</a>

								<b class="arrow"></b>
							</li>
						</ul>
					</li>

					<li class="">
						<a href="#" class="dropdown-toggle">
							<i class="menu-icon fa fa-file-o"></i>

							<span class="menu-text">
								Other Pages

								<!-- #section:basics/sidebar.layout.badge -->
								<span class="badge badge-primary">5</span>

								<!-- /section:basics/sidebar.layout.badge -->
							</span>

							<b class="arrow fa fa-angle-down"></b>
						</a>

						<b class="arrow"></b>

						<ul class="submenu">
							<li class="">
								<a href="faq.html">
									<i class="menu-icon fa fa-caret-right"></i>
									FAQ
								</a>

								<b class="arrow"></b>
							</li>

							<li class="">
								<a href="error-404.html">
									<i class="menu-icon fa fa-caret-right"></i>
									Error 404
								</a>

								<b class="arrow"></b>
							</li>

							<li class="">
								<a href="error-500.html">
									<i class="menu-icon fa fa-caret-right"></i>
									Error 500
								</a>

								<b class="arrow"></b>
							</li>

							<li class="">
								<a href="grid.html">
									<i class="menu-icon fa fa-caret-right"></i>
									Grid
								</a>

								<b class="arrow"></b>
							</li>

							<li class="">
								<a href="blank.html">
									<i class="menu-icon fa fa-caret-right"></i>
									Blank Page
								</a>

								<b class="arrow"></b>
							</li>
						</ul>
					</li>
				</ul><!-- /.nav-list -->

				<!-- #section:basics/sidebar.layout.minimize -->
				<div class="sidebar-toggle sidebar-collapse" id="sidebar-collapse">
					<i class="ace-icon fa fa-angle-double-left" data-icon1="ace-icon fa fa-angle-double-left" data-icon2="ace-icon fa fa-angle-double-right"></i>
				</div>

				<!-- /section:basics/sidebar.layout.minimize -->
				<script type="text/javascript">
					try{ace.settings.check('sidebar' , 'collapsed')}catch(e){}
				</script>
			</div>

			<!-- /section:basics/sidebar -->
			<div class="main-content">
				<!-- #section:basics/content.breadcrumbs -->
				<div class="breadcrumbs" id="breadcrumbs">
					<script type="text/javascript">
						try{ace.settings.check('breadcrumbs' , 'fixed')}catch(e){}
					</script>

					<ul class="breadcrumb">
						<li>
							<i class="ace-icon fa fa-home home-icon"></i>
							<a href="#">Home</a>
						</li>

						<li>
							<a href="#">Tables</a>
						</li>
						<li class="active">Simple &amp; Dynamic</li>
					</ul><!-- /.breadcrumb -->

					<!-- #section:basics/content.searchbox -->
					<div class="nav-search" id="nav-search">
						<form class="form-search">
							<span class="input-icon">
								<input type="text" placeholder="Search ..." class="nav-search-input" id="nav-search-input" autocomplete="off" />
								<i class="ace-icon fa fa-search nav-search-icon"></i>
							</span>
						</form>
					</div><!-- /.nav-search -->

					<!-- /section:basics/content.searchbox -->
				</div>

				<!-- /section:basics/content.breadcrumbs -->
				<div class="page-content">
					<!-- #section:settings.box -->
					<div class="ace-settings-container" id="ace-settings-container">
						<div class="btn btn-app btn-xs btn-warning ace-settings-btn" id="ace-settings-btn">
							<i class="ace-icon fa fa-cog bigger-150"></i>
						</div>

						<div class="ace-settings-box clearfix" id="ace-settings-box">
							<div class="pull-left width-50">
								<!-- #section:settings.skins -->
								<div class="ace-settings-item">
									<div class="pull-left">
										<select id="skin-colorpicker" class="hide">
											<option data-skin="no-skin" value="#438EB9">#438EB9</option>
											<option data-skin="skin-1" value="#222A2D">#222A2D</option>
											<option data-skin="skin-2" value="#C6487E">#C6487E</option>
											<option data-skin="skin-3" value="#D0D0D0">#D0D0D0</option>
										</select>
									</div>
									<span>&nbsp; Choose Skin</span>
								</div>

								<!-- /section:settings.skins -->

								<!-- #section:settings.navbar -->
								<div class="ace-settings-item">
									<input type="checkbox" class="ace ace-checkbox-2" id="ace-settings-navbar" />
									<label class="lbl" for="ace-settings-navbar"> Fixed Navbar</label>
								</div>

								<!-- /section:settings.navbar -->

								<!-- #section:settings.sidebar -->
								<div class="ace-settings-item">
									<input type="checkbox" class="ace ace-checkbox-2" id="ace-settings-sidebar" />
									<label class="lbl" for="ace-settings-sidebar"> Fixed Sidebar</label>
								</div>

								<!-- /section:settings.sidebar -->

								<!-- #section:settings.breadcrumbs -->
								<div class="ace-settings-item">
									<input type="checkbox" class="ace ace-checkbox-2" id="ace-settings-breadcrumbs" />
									<label class="lbl" for="ace-settings-breadcrumbs"> Fixed Breadcrumbs</label>
								</div>

								<!-- /section:settings.breadcrumbs -->

								<!-- #section:settings.rtl -->
								<div class="ace-settings-item">
									<input type="checkbox" class="ace ace-checkbox-2" id="ace-settings-rtl" />
									<label class="lbl" for="ace-settings-rtl"> Right To Left (rtl)</label>
								</div>

								<!-- /section:settings.rtl -->

								<!-- #section:settings.container -->
								<div class="ace-settings-item">
									<input type="checkbox" class="ace ace-checkbox-2" id="ace-settings-add-container" />
									<label class="lbl" for="ace-settings-add-container">
										Inside
										<b>.container</b>
									</label>
								</div>

								<!-- /section:settings.container -->
							</div><!-- /.pull-left -->

							<div class="pull-left width-50">
								<!-- #section:basics/sidebar.options -->
								<div class="ace-settings-item">
									<input type="checkbox" class="ace ace-checkbox-2" id="ace-settings-hover" />
									<label class="lbl" for="ace-settings-hover"> Submenu on Hover</label>
								</div>

								<div class="ace-settings-item">
									<input type="checkbox" class="ace ace-checkbox-2" id="ace-settings-compact" />
									<label class="lbl" for="ace-settings-compact"> Compact Sidebar</label>
								</div>

								<div class="ace-settings-item">
									<input type="checkbox" class="ace ace-checkbox-2" id="ace-settings-highlight" />
									<label class="lbl" for="ace-settings-highlight"> Alt. Active Item</label>
								</div>

								<!-- /section:basics/sidebar.options -->
							</div><!-- /.pull-left -->
						</div><!-- /.ace-settings-box -->
					</div><!-- /.ace-settings-container -->

					<!-- /section:settings.box -->
					<div class="page-content-area">
						<div class="page-header">
							<h1>
								课程信息
								<small>
									<i class="ace-icon fa fa-angle-double-right"></i>
									课程信息列表
								</small>
							</h1>
							</div>
						</div><!-- /.page-header -->
							
						
						<div class="row">
							<div class="col-xs-12">
								<!-- PAGE CONTENT BEGINS -->
								<div class="row">
									<div class="col-xs-12">
									
											<div class="row">
												<%-- <div class="col-xs-4">
													<form:form action="examTestBySubject" method="POST" modelAttribute="subject">						
														<form:select path="sub_id"  items="${subjectList}" itemLabel="name" itemValue="sub_id" ></form:select>
														<button  type="submit">Submit</button>		
													</form:form>
												</div> --%>
												<div class="col-xs-6">
													<button type="button" class="btn btn-primary" id="bath_delete_Btn">
													  <span class="glyphicon glyphicon-plus" aria-hidden="true">批量删除</span>
													</button>
												</div>
											</div>
									
										<table id="sample-table-1" class="table table-striped table-bordered table-hover">
											<thead>
												<tr>
													<th align="center"><button type="button" class="btn btn-info btn-sm" id="saveExamTest">增加考题</button></th>
													<th>编号</th>										
													<th>题干</th>
													<th>选项A</th>
													<th>选项B</th>
													<th>选项C</th>
													<th>选项D</th>
													<th>答案</th>
													<th>题目分数</th>
													<th>操作</th>
												</tr>
											</thead>

											<tbody>
											<c:forEach items="${ExamTestList.dates}" var="examTest">			
												<tr>
													<td class="center">
														<label class="position-relative">
															<input type="checkbox" class="ace">
															<span class="lbl"></span>
														</label>
													</td>
													<td>${examTest.id }</td>
													<td>${examTest.content }</td>
													<td>${examTest.chooseA }</td>
													<td>${examTest.chooseB }</td>
													<td>${examTest.chooseC }</td>
													<td>${examTest.chooseD }</td>
													<td>${examTest.answer}</td>
													<td>${examTest.examTestType.testTypeScore}</td>
													<td>
														<!-- <a title="查看考题" class="btn btn-primary btn-xs show-test"><i class="ace-icon fa fa-comment"></i></a>&nbsp; -->
														<button type="button" class="btn btn-primary btn-xs showTest" show_id="${examTest.id }"  title="查看考题">
															<span class="ace-icon fa fa-comment" aria-hidden="true"></span>
														</button>
														<button type="button" class="btn btn-primary btn-xs updateTest" update_id="${examTest.id }"  title="修改考题">
															<span class="glyphicon glyphicon-pencil" aria-hidden="true"></span>
														</button>
														<button type="button" class="btn btn-danger btn-xs deleteTest" delete_id="${examTest.id }"   title="删除考题">
															<span class="glyphicon glyphicon-trash" aria-hidden="true"></span>
														</button>
														<%-- <a href="deleteExamTest/${examTest.id}" onclick="javascript: return confirm('真的要删除吗？');">
															<button class="btn btn-xs btn-danger">
																<i class="ace-icon fa fa-trash-o bigger-120"></i>
															</button>
														</a> --%>
													</td>
												</tr>
											</c:forEach> 
											</tbody>
										</table>
									
									
										<pg:pager url="ExamTest" items="${ExamTestList.totalSize}" export="currentPageNumber=pageNumber" maxPageItems="5">   
											  <pg:first>   
											    <a href="${pageUrl}">首页</a>   
											  </pg:first>   
											  <pg:prev>   
											    <a href="${pageUrl }">上一页</a>   
											  </pg:prev>   
											  <pg:pages>   
											    <c:choose>   
											      <c:when test="${currentPageNumber eq pageNumber}">   
											        <font color="red">${pageNumber }</font>   
											      </c:when>   
											      <c:otherwise>   
											        <a href="${pageUrl }">${pageNumber }</a>   
											      </c:otherwise>   
											    </c:choose>   
											  </pg:pages>   
											  <pg:next>   
											    <a href="${pageUrl }">下一页</a>   
											  </pg:next>   
											  <pg:last>   
											    <a href="${pageUrl }">尾页</a>   
											  </pg:last>   
										</pg:pager>   
								</div>
							</div>
						</div><!-- /.span -->
					</div><!-- /.row -->
				</div>
			</div>
						
						
						
			<div class="footer">
				<div class="footer-inner">
					<!-- #section:basics/footer -->
					<div class="footer-content">
						<span class="bigger-120">
							<span class="blue bolder">Ace</span>
							Application &copy; 2013-2014
						</span>

						&nbsp; &nbsp;
						<span class="action-buttons">
							<a href="#">
								<i class="ace-icon fa fa-twitter-square light-blue bigger-150"></i>
							</a>

							<a href="#">
								<i class="ace-icon fa fa-facebook-square text-primary bigger-150"></i>
							</a>

							<a href="#">
								<i class="ace-icon fa fa-rss-square orange bigger-150"></i>
							</a>
						</span>
					</div>

					<!-- /section:basics/footer -->
				</div>
			</div>

			<a href="#" id="btn-scroll-up" class="btn-scroll-up btn btn-sm btn-inverse">
				<i class="ace-icon fa fa-angle-double-up icon-only bigger-110"></i>
			</a>
		</div><!-- /.main-container -->
		
		<!-- 查询详细的信息 -->
		<div class="modal fade" tabindex="-1" role="dialog" id="showTestModal">
			  <div class="modal-dialog" role="document">
				    <div class="modal-content">
				    
					      <div class="modal-header">
						        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
						        <h4 class="modal-title">查看考题</h4>
					      </div>
					      
					      <div class="modal-body">
					        	<label>试题科目：&nbsp;</label><span class="sub-name"></span><br>
					        	<label>试题：&nbsp;</label><span class="content"></span>&nbsp;&nbsp;——&nbsp;&nbsp;(<span class="test-type"></span>,每题<span class="test-type-score"></span>分)<br>
					        	<label>A：&nbsp;</label><span class="choose-a"></span><br>
					        	<label>B：&nbsp;</label><span class="choose-b"></span><br>
					        	<label>C：&nbsp;</label><span class="choose-c"></span><br>
					        	<label>D：&nbsp;</label><span class="choose-d"></span><br>
					        	<label style="font-weight:bold;">答案:&nbsp;&nbsp;</label><span class="answer" style="font-weight:bold;"></span>
					      </div>
					      
					      <div class="modal-footer">
						        <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>	
					      </div>
				    </div><!-- /.modal-content -->
			  </div><!-- /.modal-dialog -->
		</div><!-- /.modal -->
		
		
		
		
		<!-- 添加考题 -->
		<div class="modal fade" tabindex="-1" role="dialog" id="addTestModal">
			  <div class="modal-dialog" role="document">
				    <div class="modal-content">
				    
					      <div class="modal-header">
						        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
						        <h4 class="modal-title">添加考题</h4>
					      </div>
					      
					      <div class="modal-body" >
						      	<form id="addTestForm" method="post" class="form-horizontal">
						      		<div class="form-group">
									    <label for="inputEmail3" class="col-sm-2 control-label">科目</label>
									    <div class="col-sm-6">
									      <select class="form-control" id="addTest_SubName" name="subjects.sub_id"></select>
									    </div>
								    </div>
								    
								    <div class="form-group">
									    <label for="inputEmail3" class="col-sm-2 control-label">试题类型</label>
									    <div class="col-sm-6">
									      <select class="form-control" id="addTest_testType" name="examTestType.id"></select>
									    </div>
									    <label for="empName_add_input" class="col-sm-2 control-label">分数:</label>
									    <div class="col-sm-2">
				      						<p class="form-control-static" id="empName_add_static"></p>
				    					</div>
									   
								    </div>
								    
								    
								    <div class="form-group">
									    <label for="inputEmail3" class="col-sm-2 control-label">题干</label>
									    <div class="col-sm-10">
									      <textarea name="content" class="form-control" rows="3"></textarea>
									    </div>
								    </div>
								    
								    <div class="form-group">
									    <label for="inputEmail3" class="col-sm-2 control-label">选项A</label>
									    <div class="col-sm-10">
									      	<input type="text" name="chooseA" class="form-control" id="inputEmail3" placeholder="选项A">
									    </div>
								    </div>
								    
								    <div class="form-group">
									    <label for="inputEmail3" class="col-sm-2 control-label">选项B</label>
									    <div class="col-sm-10">
									      	<input type="text" name="chooseB" class="form-control" id="inputEmail3" placeholder="选项B">
									    </div>
								    </div>
								    
								    <div class="form-group">
									    <label for="inputEmail3" class="col-sm-2 control-label">选项C</label>
									    <div class="col-sm-10">
									      	<input type="text" name="chooseC" class="form-control" id="inputEmail3" placeholder="选项C">
									    </div>
								    </div>
								    
								    
								    <div class="form-group">
									    <label for="inputEmail3" class="col-sm-2 control-label">选项D</label>
									    <div class="col-sm-10">
									     	<input type="text" name="chooseD" class="form-control" id="inputEmail3" placeholder="选项D">
									    </div>
								    </div>
								    
								    
								    <div class="form-group">
									    <label for="inputEmail3" class="col-sm-2 control-label">答案</label>
									    <div class="col-sm-10">
										     <label class="checkbox-inline">
												  <input type="checkbox" name="answer" id="inlineCheckbox1" value="A">A
											 </label>
											 <label class="checkbox-inline">
												  <input type="checkbox" name="answer" id="inlineCheckbox2" value="B">B
											 </label>
											 <label class="checkbox-inline">
												  <input type="checkbox" name="answer" id="inlineCheckbox3" value="C">C
											 </label>
											 <label class="checkbox-inline">
												  <input type="checkbox" name="answer" id="inlineCheckbox3" value="D">D
											 </label>
									    </div>
								    </div>		        	
						        </form>
					      </div>
					      
					      <div class="modal-footer">
						        <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>	
						        <button type="button" class="btn btn-primary" data-dismiss="modal" id="addTestSaveBtn">保存</button>	<
					      </div>
				    </div><!-- /.modal-content -->
			  </div><!-- /.modal-dialog -->
		</div><!-- /.modal -->
		
		
		
		<!-- 修改考题 -->
		<div class="modal fade" tabindex="-1" role="dialog" id="updateTestModal">
			  <div class="modal-dialog" role="document">
				    <div class="modal-content">
				    
					      <div class="modal-header">
						        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
						        <h4 class="modal-title">修改考题</h4>
					      </div>
					      
					      <div class="modal-body" >
						      	<form id="updateTestForm" class="form-horizontal">
						      		<div class="form-group">
									    <label for="inputEmail3" class="col-sm-2 control-label">科目</label>
									    <div class="col-sm-6">
									      <select class="form-control" id="updateTest_SubName" name="subjects.sub_id"></select>
									    </div>
								    </div>
								    
								    <div class="form-group">
									    <label for="inputEmail3" class="col-sm-2 control-label">试题类型</label>
									    <div class="col-sm-6">
									      <select class="form-control" id="updateTest_testType" name="examTestType.id"></select>
									    </div>
									    <label for="empName_add_input" class="col-sm-2 control-label">分数:</label>
									    <div class="col-sm-2">
				      						<p class="form-control-static" id="empName_update_static"></p>
				    					</div>
									   
								    </div>
								    
								    
								    <div class="form-group">
									    <label for="inputEmail3" class="col-sm-2 control-label">题干</label>
									    <div class="col-sm-10">
									      <textarea name="content" class="form-control" id="update_content" rows="3"></textarea>
									    </div>
								    </div>
								    
								    <div class="form-group">
									    <label for="inputEmail3" class="col-sm-2 control-label">选项A</label>
									    <div class="col-sm-10">
									      	<input type="text" name="chooseA" class="form-control" id="update_chooseA" placeholder="选项A">
									    </div>
								    </div>
								    
								    <div class="form-group">
									    <label for="inputEmail3" class="col-sm-2 control-label">选项B</label>
									    <div class="col-sm-10">
									      	<input type="text" name="chooseB" class="form-control" id="update_chooseB" placeholder="选项B">
									    </div>
								    </div>
								    
								    <div class="form-group">
									    <label for="inputEmail3" class="col-sm-2 control-label">选项C</label>
									    <div class="col-sm-10">
									      	<input type="text" name="chooseC" class="form-control" id="update_chooseC" placeholder="选项C">
									    </div>
								    </div>
								    
								    
								    <div class="form-group">
									    <label for="inputEmail3" class="col-sm-2 control-label">选项D</label>
									    <div class="col-sm-10">
									     	<input type="text" name="chooseD" class="form-control" id="update_chooseD" placeholder="选项D">
									    </div>
								    </div>
								    
								    
								    <div class="form-group">
									    <label for="inputEmail3" class="col-sm-2 control-label">答案</label>
									    <div class="col-sm-10">
										     <label class="checkbox-inline">
												  <input type="checkbox" name="answer" id="inlineCheckbox1" value="A">A
											 </label>
											 <label class="checkbox-inline">
												  <input type="checkbox" name="answer" id="inlineCheckbox2" value="B">B
											 </label>
											 <label class="checkbox-inline">
												  <input type="checkbox" name="answer" id="inlineCheckbox3" value="C">C
											 </label>
											 <label class="checkbox-inline">
												  <input type="checkbox" name="answer" id="inlineCheckbox3" value="D">D
											 </label>
									    </div>
								    </div>		        	
						        </form>
					      </div>
					      
					      <div class="modal-footer">
						        <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>	
						        <button type="button" class="btn btn-primary" data-dismiss="modal" id="updateTestSaveBtn">修改</button>	<
					      </div>
				    </div><!-- /.modal-content -->
			  </div><!-- /.modal-dialog -->
		</div><!-- /.modal -->
		
		
		
		<!-- 批量增加 -->
		<div class="modal fade" id="uploadFileModal" tabindex="-1" role="dialog">
			 <div class="modal-dialog" role="document">
			    <div class="modal-content">
			      <div class="modal-header">
			        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
			        <h4 class="modal-title">文件上传</h4>
			      </div>
			      <div class="modal-body">
			        <input id="uploadFile" name="uploadFile" type="file"/>
			      </div>
			      <div class="modal-footer">
			        <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
			        <button type="button" class="btn btn-primary" id="upfileSaveBtn">保存</button>
			      </div>
			    </div><!-- /.modal-content -->
			 </div><!-- /.modal-dialog -->
		</div><!-- /.modal -->
		
		
		
		
		<!-- basic scripts -->

		<!--[if !IE]> -->
		<script type="text/javascript">
			window.jQuery || document.write("<script src='${pageContext.request.contextPath }/static/assets/js/jquery.min.js'>"+"<"+"/script>");
		</script>

		<!-- <![endif]-->

		<!--[if IE]>
<script type="text/javascript">
 window.jQuery || document.write("<script src='../assets/js/jquery1x.min.js'>"+"<"+"/script>");
</script>
<![endif]-->
		<script type="text/javascript">
			if('ontouchstart' in document.documentElement) document.write("<script src='${pageContext.request.contextPath }/static/assets/js/jquery.mobile.custom.min.js'>"+"<"+"/script>");
		</script>
		<script src="${pageContext.request.contextPath }/static/assets/js/bootstrap.min.js"></script>

		<!-- page specific plugin scripts -->
		<script src="${pageContext.request.contextPath }/static/assets/js/jquery.dataTables.min.js"></script>
		<script src="${pageContext.request.contextPath }/static/assets/js/jquery.dataTables.bootstrap.js"></script>

		<!-- ace scripts -->
		<script src="${pageContext.request.contextPath }/static/assets/js/ace-elements.min.js"></script>
		<script src="${pageContext.request.contextPath }/static/assets/js/ace.min.js"></script>

		<!-- inline scripts related to this page -->
		<script type="text/javascript">
			jQuery(function($) {
				var oTable1 = 
				$('#sample-table-2')
				//.wrap("<div class='dataTables_borderWrap' />")   //if you are applying horizontal scrolling (sScrollX)
				.dataTable( {
					bAutoWidth: false,
					"aoColumns": [
					  { "bSortable": false },
					  null, null,null, null, null,
					  { "bSortable": false }
					],
					"aaSorting": [],
			
					//,
					//"sScrollY": "200px",
					//"bPaginate": false,
			
					//"sScrollX": "100%",
					//"sScrollXInner": "120%",
					//"bScrollCollapse": true,
					//Note: if you are applying horizontal scrolling (sScrollX) on a ".table-bordered"
					//you may want to wrap the table inside a "div.dataTables_borderWrap" element
			
					//"iDisplayLength": 50
			    } );
				/**
				var tableTools = new $.fn.dataTable.TableTools( oTable1, {
					"sSwfPath": "../../copy_csv_xls_pdf.swf",
			        "buttons": [
			            "copy",
			            "csv",
			            "xls",
						"pdf",
			            "print"
			        ]
			    } );
			    $( tableTools.fnContainer() ).insertBefore('#sample-table-2');
				*/
			
			
				$(document).on('click', 'th input:checkbox' , function(){
					var that = this;
					$(this).closest('table').find('tr > td:first-child input:checkbox')
					.each(function(){
						this.checked = that.checked;
						$(this).closest('tr').toggleClass('selected');
					});
				});
			
			
				$('[data-rel="tooltip"]').tooltip({placement: tooltip_placement});
				function tooltip_placement(context, source) {
					var $source = $(source);
					var $parent = $source.closest('table')
					var off1 = $parent.offset();
					var w1 = $parent.width();
			
					var off2 = $source.offset();
					//var w2 = $source.width();
			
					if( parseInt(off2.left) < parseInt(off1.left) + parseInt(w1 / 2) ) return 'right';
					return 'left';
				}
			
			})
		</script>
		
		<!-- ajax请求和模态框 -->
		
		
												<%-- <tr>
													<td class="center">
														<label class="position-relative">
															<input type="checkbox" class="ace">
															<span class="lbl"></span>
														</label>
													</td>
													<td>${examTest.id }</td>
													<td>${examTest.content }</td>
													<td>${examTest.chooseA }</td>
													<td>${examTest.chooseB }</td>
													<td>${examTest.chooseC }</td>
													<td>${examTest.chooseD }</td>
													<td>${examTest.answer}</td>
													<td>${examTest.examTestType.testTypeScore}</td>
													<td>
														<!-- <a title="查看考题" class="btn btn-primary btn-xs show-test"><i class="ace-icon fa fa-comment"></i></a>&nbsp; -->
														<button type="button" class="btn btn-primary btn-xs showTest"  title="查看考题">
															<span class="ace-icon fa fa-comment" aria-hidden="true"></span>
														</button>
														<a href="editExamTest/${examTest.id }">
															<button class="btn btn-xs btn-info">
																<i class="ace-icon fa fa-pencil bigger-120"></i>
															</button></a>&nbsp;
														<a href="deleteExamTest/${examTest.id}" onclick="javascript: return confirm('真的要删除吗？');">
															<button class="btn btn-xs btn-danger">
																<i class="ace-icon fa fa-trash-o bigger-120"></i>
															</button>
														</a>
													</td>
												</tr> --%>
												
												
								<!-- <nav aria-label="Page navigation">
									  <ul class="pagination">
									    <li>
									      <a href="#" aria-label="Previous">
									        <span aria-hidden="true">&laquo;</span>
									      </a>
									    </li>
									    <li><a href="#">1</a></li>
									    <li><a href="#">2</a></li>
									    <li><a href="#">3</a></li>
									    <li><a href="#">4</a></li>
									    <li><a href="#">5</a></li>
									    <li>
									      <a href="#" aria-label="Next">
									        <span aria-hidden="true">&raquo;</span>
									      </a>
									    </li>
									  </ul>
								</nav> -->				
												
									
									
									
												
		<script type="text/javascript">
			
			
			//请求所有的考题信息
			/* $().ready(function(){
				to_page(1);
			}); */
			
			//所有的信息
			/* function to_page(pn){
				$("#sample-table-1 tbody").empty();
				
					$.ajax({
						url:"${pageContext.request.contextPath }/ExamTests/getExamTests",
						type:"GET",
						data:"pn="+pn,
						success:function(result){
							$.each(result.map.examTests.dates,function(index,item){
								var tr=$("<tr></tr>");
								
								//选择按钮
								var chooseTd=$("<td></td>");
								var chooseLabel=$("<label></label>").addClass("position-relative");
								var chooseInput=$("<input/>").addClass("ace").attr("type","checkbox");
								var chooseSpan=$("<span></span>").addClass("lbl");
								chooseLabel.append(chooseInput).append(chooseSpan);
								chooseTd.append(chooseLabel);
								tr.append(chooseTd);
								
								//数据
								var idTd=$("<td></td>").append(item.id);
								var contentTd=$("<td></td>").append(item.content);
								var chooseATd=$("<td></td>").append(item.chooseA);
								var chooseBTd=$("<td></td>").append(item.chooseB);
								var chooseCTd=$("<td></td>").append(item.chooseC);
								var chooseDTd=$("<td></td>").append(item.chooseD);
								var answerTd=$("<td></td>").append(item.answer);
								
								var testTypeScoreTd=$("<td></td>").append(item.examTestType.testTypeScore);
								tr.append(idTd).append(contentTd).append(chooseATd).append(chooseBTd).append(chooseCTd).append(chooseDTd).append(answerTd).append(testTypeScoreTd);
								
								//按钮
								var lastTd=$("<td></td>");
								var getTestBtn=$("<button></button>").addClass("btn btn-primary btn-xs showTest").attr("title","查看题目");
								var spanGetBtn=$("<span></span>").addClass("ace-icon fa fa-comment");
								var editBtn=$("<button></button>").addClass("btn btn-info btn-xs editTest").attr("title","更改考题");
								var spanEditBtn=$("<span></span>").addClass("ace-icon fa fa-pencil bigger-120");
								var delBtn=$("<button></button>").addClass("btn btn-danger btn-xs delTest").attr("title","删除考题");
								var spanDelBtn=$("<span></span>").addClass("ace-icon fa fa-trash-o bigger-120");
								getTestBtn.append(spanGetBtn);
								editBtn.append(spanEditBtn);
								delBtn.append(spanDelBtn);
								lastTd.append(getTestBtn).append(editBtn).append(delBtn);
								tr.append(lastTd);
								tr.appendTo(".table-hover tbody");	
			
							});
							
							/* //分页条
							var ul=$("<ul></ul>").addClass("pagination");
							var fristPageLi=$("<li></li>").append($("<a></a>").append("首页").attr("href","#"));
							var prePageLi=$("<li></li>").append($("<a></a>").append("&laquo;"));
							
							//判断是否有前一页
							if(result.map.examTests.hasPreviousPage==false){
								fristPageLi.addClass("disabled");
								prePageLi.addClass("disabled");
							}
							else{
								//为元素添加点击翻页事件
								fristPageLi.click(function(){
									to_page(1)
								});
								prePageLi.click(function(){
									to_page(result.map.examTests.cureentPage-1)
								});
							}
							
							var nextPageLi=$("<li></li>").append($("<a></a>").append("&raquo;"));
							var lastPageLi=$("<li></li>").append($("<a></a>").append("末页").attr("href","#"));
							//判断是否有后一页
							if(result.map.examTests.hasPreviousPage==false){
								nextPageLi.addClass("disabled");
								lastPageLi.addClass("disabled");
							}
							else{
								//为元素添加翻页事件
								nextPageLi.click(function(){
									to_page(result.map.examTests.cureentPage+1)
								});
								lastPageLi.click(function(){
									
									to_page(result.extend.pageInfo.pages)
								});
							}
							
							
							//添加首页和前一页
							ul.append(fristPageLi).append(prePageLi);
							
							//这里item是指result.extend.pageInfo.navigatepageNums即1,2,3,4,5
							//$.each(遍历的对象，回调函数，即这个循环要做什么function(index(索引),item(item指前面的遍历对象)))
							//$.each(result.extend.pageInfo.navigatepageNums,function(index,item){
								var numLi1=$("<li></li>").append($("<a></a>").append(1));
								var numLi1=$("<li></li>").append($("<a></a>").append(1));
								var numLi1=$("<li></li>").append($("<a></a>").append(1));
								var numLi1=$("<li></li>").append($("<a></a>").append(1))
								//加上active着重色
								if(result.extend.pageInfo.pageNum==item){
									numLi.addClass("active");
								}
								//添加单击事件，ajax请求道相应的页码
								numLi.click(function(){
									to_page(item)
								});
								
								ul.append(numLi);
							//});
							ul.append(nextPageLi).append(lastPageLi); */
							
							
							
						//}//success
					//});
			//} */
			
			
			//加载页面的时候增加的元素不可以得到，要通过on方法才可以
			//展示数据
			/* $(document).on("click",".showTest",function(){
				var testId=$(this).parent().siblings().eq(1).text();
				$.ajax({
					url:"${pageContext.request.contextPath }/ExamTests/getTestById",
					type:"POST",
					data:"testId="+testId,
					dataType:"json",
					success:function(result){
						$("#showTestModal .sub-name").text(result.map.data.subName);
						$("#showTestModal .content").text(result.map.data.content);
						$("#showTestModal .test-type").text(result.map.data.examTestType.testType);
						$("#showTestModal .test-type-score").text(result.map.data.examTestType.testTypeScore);
						$("#showTestModal .choose-a").text(result.map.data.chooseA);
						$("#showTestModal .choose-b").text(result.map.data.chooseB);
						$("#showTestModal .choose-c").text(result.map.data.chooseC);
						$("#showTestModal .choose-d").text(result.map.data.chooseD);
						$("#showTestModal .answer").text(result.map.data.answer);
					}
				});
				$("#showTestModal").modal({
						backdrop:"static"
				});
			}) */
			
			//根据Id获取试题信息
			function getTestById(id){
				$.ajax({
					url:"${pageContext.request.contextPath }/ExamTests/getTestById",
					type:"POST",
					data:"testId="+id,
					dataType:"json",
					success:function(result){
						$("#showTestModal .sub-name").text(result.map.data.subName);
						$("#showTestModal .content").text(result.map.data.content);
						$("#showTestModal .test-type").text(result.map.data.examTestType.testType);
						$("#showTestModal .test-type-score").text(result.map.data.examTestType.testTypeScore);
						$("#showTestModal .choose-a").text(result.map.data.chooseA);
						$("#showTestModal .choose-b").text(result.map.data.chooseB);
						$("#showTestModal .choose-c").text(result.map.data.chooseC);
						$("#showTestModal .choose-d").text(result.map.data.chooseD);
						$("#showTestModal .answer").text(result.map.data.answer);
						/* $.each(result.map.answers,function(index,item){
							$("#showTestModal .answer").text(item);
						});  */
						/* for(var i=0;i<result.map.answers.length;i++){
							$("#showTestModal .answer").text(result.map.answers[i]+",");
						} */
					}
				});
			}
			
		
			 //展示详细的数据信息
			$(".showTest").click(function(){
				var testId=$(this).parent().siblings().eq(1).text();
				getTestById(testId);
				$("#showTestModal").modal({
						backdrop:"static"
				});
			}); 
			
			
			//点击弹出添加考题的模态框
			$("#saveExamTest").click(function(){
				//科目信息
				getSubs("#addTest_SubName");
				//试题类型
				getTestTypes("#addTest_testType");
				
				$("#addTestModal").modal({
					backdrop:"static"
				});
			})
			
			//获取所有的科目信息
			function getSubs(ele){
				$(ele).empty();
				$.ajax({
					url:"${pageContext.request.contextPath }/Subjects/getSubject",
					type:"GET",
					success:function(result){
						$.each(result.map.subjects,function(index,item){
							var options=$("<option></option>").append(item.name).attr("value",item.sub_id);
							options.appendTo(ele);
						});	
					}
				});
			}
			
			//获取所有的试题类型
			function getTestTypes(ele){
				$(ele).empty();
				$.ajax({
					url:"${pageContext.request.contextPath }/TestType/getTestTypes",
					type:"GET",
					success:function(result){
						$.each(result.map.testTypes,function(index,item){
							var options=$("<option></option>").append(item.testType).attr("value",item.id);
							options.appendTo(ele);
						});
					}
				});
			}
	
			//保存功能
			$("#addTestSaveBtn").click(function(){
				$.ajax({
					url:"${pageContext.request.contextPath }/ExamTests/saveExamTest",
					type:"POST",
					data:$("#addTestModal form").serialize(),
					success:function(result){
						$("#addTestModal").modal("hide");
						alert(result.message);
						window.location.reload();
					}
				});
			})
			
			
			//打开批量保存的模态框
			$("#bath_add_Btn").click(function(){
				$("#uploadFileModal").modal({
					backdrop:"static"
			});
				
			});
			
			//文件上传的样式控制
			$("#uploadFile").ace_file_input({
				style:'well',
				btn_choose:'Drop files here or click to choose',
				btn_change:null,
				no_icon:'ace-icon fa fa-cloud-upload',
				droppable:true,
				thumbnail:'small',
				preview_error:function(filename,error_code){
					
				}
			}).on('change',function(){
				
			});
			
			//ajxa请求批量添加学生
			$("#upfileSaveBtn").click(function(){
				$.ajaxFileUpload({
					url:"${pageContext.request.contextPath }/ExamTests/uploadFile",
					secureuri:false,
					fileElementId:"uploadFile",
					dataType:"json",
					complete:function(data){
						
					},
					success:function(data,status){
						if(data.code==100){
							alert("处理成功");
						}
						else{
							alert("处理不成功");
						}
					},
					error:function(data,status,e){
						alert(e);
					}
				})
				
			})
			
			//点击打开修改的模态框
			$(".updateTest").click(function(){
				getSubs("#updateTest_SubName");
				getTestTypes("#updateTest_testType");
				$("#updateTestSaveBtn").attr("update_id",$(this).attr("update_id"));
				$.ajax({
					url:"${pageContext.request.contextPath }/ExamTests/getTestById",
					data:"testId="+$(this).attr("update_id"),
					type:"POST",
					success:function(result){
						$("#update_content").val(result.map.data.content);
						$("#update_chooseA").val(result.map.data.chooseA);
						$("#update_chooseB").val(result.map.data.chooseB);
						$("#update_chooseC").val(result.map.data.chooseC);
						$("#update_chooseD").val(result.map.data.chooseD);
						
						
						$.each(result.map.answers,function(index,item){
							 if(item=="A"){
								 $("#updateTestModal input[type='checkbox']").eq(0).prop("checked",true);
							 }
							 if(item=="B"){
								 $("#updateTestModal input[type='checkbox']").eq(1).prop("checked",true);
							 }
							 if(item=="C"){
								 $("#updateTestModal input[type='checkbox']").eq(2).prop("checked",true);
							 }
							 if(item=="D"){
								 $("#updateTestModal input[type='checkbox']").eq(3).prop("checked",true);
							 }
						})
					}
				});
				
				$("#updateTestModal").modal({
					backdrop:"static"
			});
			})
			
			//点击更新的操作
			$("#updateTestSaveBtn").click(function(){
				
				$.ajax({
					url:"${pageContext.request.contextPath }/ExamTests/updateTest/"+$(this).attr("update_id"),
					type:"POST",
					data:$("#updateTestModal form").serialize(),
					success:function(result){
						$("#addTestModal").modal("hide");
						alert(result.message);
						window.location.reload();
					}
				});
			});
			
			//删除操作
			$(".deleteTest").click(function(){
				if(confirm("确认删除【"+$(this).attr("delete_id")+"】的员工吗？")){
				$.ajax({
					url:"${pageContext.request.contextPath }/ExamTests/deleteTest/"+$(this).attr("delete_id"),
					type:"POST",
					success:function(result){
						alert(result.message);
						window.location.reload();
					}
				});
				}
			});
			
				
			
			
			
		</script>

		<!-- the following scripts are used in demo only for onpage help and you don't need them -->
		<link rel="stylesheet" href="${pageContext.request.contextPath }/static/assets/css/ace.onpage-help.css" />
		<link rel="stylesheet" href="${pageContext.request.contextPath }/static/docs/assets/js/themes/sunburst.css" />

		<script type="text/javascript"> ace.vars['base'] = '..'; </script>
		<script src="${pageContext.request.contextPath }/static/assets/js/ace/elements.onpage-help.js"></script>
		<script src="${pageContext.request.contextPath }/static/assets/js/ace/ace.onpage-help.js"></script>
		<script src="${pageContext.request.contextPath }/static/docs/assets/js/rainbow.js"></script>
		<script src="${pageContext.request.contextPath }/static/docs/assets/js/language/generic.js"></script>
		<script src="${pageContext.request.contextPath }/static/docs/assets/js/language/html.js"></script>
		<script src="${pageContext.request.contextPath }/static/docs/assets/js/language/css.js"></script>
		<script src="${pageContext.request.contextPath }/static/docs/assets/js/language/javascript.js"></script>
	</body>
</html>
